#include "Branch1XMLManager.h"
using namespace DAISY::XML;
template<> XMLManager* DAISY::Tools::Singleton<XMLManager>::_singleton = new XMLManager();
bool XMLManager::init(std::string& fileName)
{
	if(_document)
		return false;
	else	
		_document = new TiXmlDocument(fileName);
	return true;
}
void XMLManager::shutDown()
{
	if(_document)
		delete _document;
}
TiXmlDocument* XMLManager::getDocument()
{
	if(_document)
		return _document;
	else
		return 0;
}